package com.ruoyi.shop.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteSellerStoreFreightTemplateService", value = ServiceNameConstants.SHOP_SERVICE)
public interface RemoteSellerStoreFreightTemplateService {

    /**
     * 获取店铺信息
     */
    @GetMapping("/seller/sellerStoreFreightTemplate/getFreightTemplateOneByStoreIdAndName/{storeId}/{mbName}")
    R<Object> getFreightTemplateOneByStoreIdAndName(@PathVariable("storeId") Long storeId,@PathVariable("mbName")  String mbName);


    /**
     * 获取店铺信息
     */
    @GetMapping("/seller/sellerStoreFreightTemplate/getFreightTemplateLogisticsCompany/{templateId}/{storeId}")
    R<Object> getFreightTemplateLogisticsCompany(@PathVariable("templateId") Long templateId, @PathVariable("storeId") Long storeId);

    /**
     * 获取店铺信息
     */
    @GetMapping("/seller/sellerStoreFreightTemplate/getSellerStoreFreightTemplate/{storeId}")
    R<Object> getSellerStoreFreightTemplate(@PathVariable("storeId") Long storeId);

    @GetMapping("/seller/sellerStoreFreightTemplate/getSellerStoreFreightTemplateAll")
    R<Object> getSellerStoreFreightTemplateAll();

    @GetMapping("/seller/sellerStoreFreightTemplate/getFreightTemplateByStoreUserName")
    R<Object> getFreightTemplateByStoreUserName(@PathVariable("storeUserName") String storeUserName);
}
